package com.gitee.mapper;

import com.gitee.annotation.AutoFill;
import com.gitee.entity.GroupChat;
import com.gitee.enumeration.OperationType;
import com.gitee.vo.GroupChatVO;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface GroupChatMapper {

    @AutoFill(OperationType.INSERT)
    @Insert("insert into sxq_group_chat values(null, #{groupId}, #{userId}, #{content}, #{createTime})")
    void insert(GroupChat groupChat);

    List<GroupChatVO> selectByGroupId(Integer groupId);
}
